package com.example.myapplication.model;

public class Word {
    public int id;
    public String en = "";
    public String vt = "";
    public String vi = "";
    public String n = "";
    public String adj = "";
    public String adv = "";
    public String conj = "";
    public String prep = "";
    public String pron = "";
    public String art = "";
    public String abbr = "";
    public String other = "";


    public String getTranslation() {
        String res = "";
        if(vt != null) { res += vt + "\n"; }
        if(vi != null) { res += vi + "\n"; }
        if(adj != null) { res += adj + "\n"; }
        if(adv != null) { res += adv + "\n"; }
        if(n != null) { res += n + "\n"; }
        if(conj != null) { res += conj + "\n"; }
        if(prep != null) { res += prep + "\n"; }
        if(pron != null) { res += pron + "\n"; }
        if(art != null) { res += art + "\n"; }
        if(abbr != null) { res += abbr + "\n"; }
        if(other != null) { res += other + "\n"; }
        return res;
    }

}
